package net.danielthompson.danray.shapes;

import net.danielthompson.danray.shading.Material;
import net.danielthompson.danray.states.IntersectionState;
import net.danielthompson.danray.structures.BoundingBox;
import net.danielthompson.danray.structures.Point;
import net.danielthompson.danray.structures.Vector;

/**
 * User: daniel
 * Date: 7/23/13
 * Time: 21:44
 */
public class Polygon implements Drawable {

   private Material _material;
   private Point[] _vertices;
   private Point _normalDirection;

   public Polygon(Point[] vertices, Material material) {
      _vertices = vertices;
      _material = material;
      _normalDirection = vertices[0].Cross(vertices[1]);
   }

   @Override
   public Material GetMaterial() {
      return _material;
   }

   @Override
   public IntersectionState GetHitInfo(Vector vector) {
      return null;
   }

   @Override
   public double BRDF(IntersectionState state, Vector cameraRay, Vector lightRay) {
      return 0;  //To change body of implemented methods use File | Settings | File Templates.
   }

   @Override
   public double GetVolume() {
      return 0;
   }

   @Override
   public BoundingBox GetBoundingBox() {
      return null;
   }
}
